<!DOCTYPE html>
<html ng-app="ylApp">
<head lang="zh">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <title>信息填写</title>
    <link rel="stylesheet" href="css/customized.css"/>
    <script src="js/jquery-1.8.3.min.js"></script>
    <script src="js/angular/angular.min.js"></script>
    <script>
        var app = angular.module('ylApp',[]);
    </script>
    <script src="js/controller.js"></script>
</head>
<body ng-controller="patientInfoFillController" ng-cloak>
<div class="navbar">
    <a href="javascript:void(0)"><span class="back-arrow" ng-click="backward()"></span></a>
    <span>信息预填</span>
    <a href="index.php"><span class="back-home"></span></a>
</div>
<div style="height:auto;width:98%;margin:0;">
    <div style="height: 50px;margin-top: 30px; width: 64%;margin-left: 18%;">
        <span style="color: lightgray;text-align: center;font-size: 12px;margin-top: 0px;">请您填写以下信息，我们将会提交给医生，帮助诊断</span>
    </div>
    <div class="info" ng-click="inputInfo($event.target)"  ng-class="{true: 'filled'}[name != '']">
        <label class="title" >姓名：</label>
        <input type="text" class="in" ng-model="name" ng-blur="stopInput($event.target)">
    </div>
    <div class="info" ng-click="inputInfo($event.target)"  ng-class="{true: 'filled'}[sex != 'none']">
        <label class="title">性别：</label>
        <select class="in" ng-model="sex" ng-blur="stopInput($event.target)">
            <option value="0" >男</option>
            <option value="1">女</option>
        </select>
    </div>
    <div class="info" ng-click="inputInfo($event.target)"  ng-class="{true: 'filled'}[birthday != '']" >
        <label class="title"  >出生年份：</label>
        <input type="text" class="in" ng-model="birthday" ng-blur="stopInput($event.target)"'/>
    </div>
    <div class="info" ng-click="inputInfo($event.target)"  ng-class="{true: 'filled'}[telephone != '']">
        <label class="title">手机号：</label>
        <input type="text" class="in" ng-model="telephone" ng-blur="stopInput($event.target)">
    </div>
    <div class="info" ng-click="inputInfo($event.target)"  ng-class="{true: 'filled'}[medicareCard != '']">
        <label class="title">挂号单号：</label>
        <input type="text" class="in" ng-model="medicareCard" ng-blur="stopInput($event.target)">
    </div>
    <div class="info" ng-click="inputInfo($event.target)"  ng-class="{true: 'filled'}[registrationNumber != '']">
        <label class="title">医保卡号：</label>
        <input type="text" class="in" ng-model="registrationNumber" ng-blur="stopInput($event.target)">
    </div>
    <div class="info" style="border: 0px;height: 120px;" ng-class="{true: 'filled'}[conditionDescription != '']">
        <label class="title">病情描述：</label>
        <textarea ng-model="conditionDescription" style="width: 96%;margin-left:2%;height:80px;margin-top: 10px;border: 1px solid lightgrey;
        border-radius: 15px;font-size: 16px;color: black;"></textarea>
    </div>
    <button class="okButton" ng-click="submit()">OK</button>
</div>
</body>
</html>